// 容器布局
.order-manage-container {
  height: -webkit-fill-available !important;
  background: #f9fafb;
}

// 标题栏
.order-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

// 主要内容区
.order-main {
  padding: 20px;
}

// 卡片样式
.order-card {
  --el-card-padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

// 表格样式
.order-table {
  --el-table-header-text-color: #303133;
  --el-table-row-hover-bg-color: #f2f9ff;

  th {
    background-color: #f9fafb !important;
  }
}

// 标签样式（保持和系统设置页面一致）
.tag-custom {
  padding: 4px 8px;
  font-size: 12px;
}

// 分页组件
.order-pagination {
  margin-top: 20px;
  text-align: right;

  // 替换 ::v-deep 为 :deep(...)
  :deep(.el-pagination) {
    .el-pagination__total {
      color: #666;
    }
    .el-pagination__sizes {
      margin: 0 10px;
    }
  }
}

// ============ 暗黑模式适配 ============
:global(.dark) {
  .order-manage-container {
    background: #141414;
  }

  .order-header {
    background: #1e1e1e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #303030;
  }

  .header-title {
    color: #e5eaf3;
  }

  .order-card {
    background-color: #1e1e1e;
    border-color: #303030;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  .order-table {
    --el-table-header-text-color: #b3b3b3;
    --el-table-row-hover-bg-color: #2a2a2a;

    th {
      background-color: #252525 !important;
    }
  }

  .order-pagination {
    :deep(.el-pagination) {
      .el-pagination__total {
        color: #b3b3b3;
      }
    }
  }
}

// 响应式适配
@media (max-width: 768px) {
  .order-main {
    padding: 10px;
  }
  .order-card {
    --el-card-padding: 12px;
  }
  .order-table {
    font-size: 12px;
  }
}
